package cn.chair.model.admin;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import life.innovation.model.BaseModel;
import life.innovation.model.Page;
import life.innovation.util.JsonDateDeserializer;
import life.innovation.util.JsonDateSerializer;

import java.util.Date;
import java.util.List;

public class RechargeOrderListResp extends BaseModel{

    private Page pagination;
    private List<RechargeOrderListResp.RechargeOrderList> list;

    public Page getPagination() {
        return pagination;
    }

    public void setPagination(Page pagination) {
        this.pagination = pagination;
    }

    public List<RechargeOrderList> getList() {
        return list;
    }

    public void setList(List<RechargeOrderList> list) {
        this.list = list;
    }

    public static class RechargeOrderList extends BaseModel{
        private String orderNo;
        private String transNo;
        private double amount;
        private double orderAmount;
        @JsonSerialize(using = JsonDateSerializer.class)
        @JsonDeserialize(using = JsonDateDeserializer.class)
        private Date orderTime;
        private int userId;
        private String mobile;
        private int orderStatus;
        private String token;

        public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public String getTransNo() {
            return transNo;
        }

        public void setTransNo(String transNo) {
            this.transNo = transNo;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public double getOrderAmount() {
            return orderAmount;
        }

        public void setOrderAmount(double orderAmount) {
            this.orderAmount = orderAmount;
        }

        public Date getOrderTime() {
            return orderTime;
        }

        public void setOrderTime(Date orderTime) {
            this.orderTime = orderTime;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public int getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(int orderStatus) {
            this.orderStatus = orderStatus;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }
    }

}
